while True:
	s = raw_input('Enter a string : ')
	if s == 'quit':
		break
	print len(s)